import Vue from 'vue'
import Vuex from 'vuex'
import login from '@/store/modules/login'
//持久化vuex中的数据
import persistedstate from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    login
  },
    //配置为vuex的插件
    plugins:[persistedstate({
      paths:['login.token']
    })],
})
